﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Xml;
using System.IO;

namespace Paste_Code.Services
{
    /// <summary>
    /// 获取站点所要用到的相关信息
    /// </summary>
    [WebService(Namespace = "http://vhost1331394335000.hk11517.yhosts.us/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class InfoService : System.Web.Services.WebService
    {

        [WebMethod]
        public XmlDocument GetSideListXML()
        {
            XmlDocument xml = new XmlDocument();
            string path = HttpContext.Current.Request.PhysicalApplicationPath + "/Config/sidelist.xml";
            FileStream fs = new FileStream(path, FileMode.Open);
            xml.Load(fs);
            fs.Close();
            return xml;
        }
    }
}
